package com.sopra.tecnica.poc.server.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sopra.tecnica.poc.server.dao.ItemDao;
import com.sopra.tecnica.poc.server.entity.ItemEntity;

@Service
public class ItemService {

	@Autowired
	private ItemDao dao;

	public List<ItemEntity> findOrderItems(String num) {
		Map<String, String> map = new HashMap<String, String>();
		map.put("company", "001");
		map.put("orderNumber", num);

		return dao.selectWithGenericCriterias(map);
		
//		return dao.findOrderItems(num);
	}
}
